package com.token.sysflow.action;
import com.token.base.AgentAction;
import com.token.base.FuncUtil;
import com.token.sql.IntegrateSql;
import com.token.sysflow.service.FlowInfoWrite;
public class DoSave implements AgentAction{

	public void executeAction(FuncUtil arg0) throws Exception {
	}

	public void executeAction(FuncUtil F, IntegrateSql iSql) throws Exception {
		try{
			iSql.setAutoCommit(false);
			FlowInfoWrite write = new FlowInfoWrite();
			write.writeData(F, iSql);
			iSql.commit();
		}catch(Exception e){
			iSql.rollback();
			throw e;
		}
	}

}
